package cn.schoolwow.ams.module.block.form.initial.service;

import cn.schoolwow.ams.module.block.form.initial.flow.CheckFormBlockOptionFlow;
import cn.schoolwow.ams.module.block.form.initial.flow.SetFormBlockContextListFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class InitialFormBlockListFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new CheckFormBlockOptionFlow())
                .next(new SetFormBlockContextListFlow())
                .execute();
    }

    @Override
    public String name() {
        return "初始化FormBlock类型页面";
    }

}
